import Header from "./layout/header/header";
import Footer from "./layout/footer";
import { AuthProvider } from "../context/AuthContext";

export default function CustomerLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  // 实际上路由要根据是哪个链接来判断的
  return (
    <AuthProvider>
      <Header />
      <div className="flex-grow">{children}</div>
      <Footer />
    </AuthProvider>
  );
}
